package com.situ.studentmanagement.dao;

import com.situ.studentmanagement.model.User;

import java.util.List;

/**
 * Created by baba on 2016/8/1.
 */
public interface UserMapper {
    User login(String name, String password);

    int insertUser(User user);


    List<User> getUsers(int start_index, int rows, String sort_column_name);

    void deleteUserById(int id);

    User selectUserByName(String name);

    void setpassword(int id, String password);

    User getUserById(int id);

    void setUserById(int modifyStaffID, String name, String realname, String password, String phone, Integer manageSex, String address);

    void changeusermessage(int id, String name, String phone, String address);

    List<User> getAllUsers();
}
